#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>




int main1()
{
	int x, y, z;
	for(x=0;x<=100;x++)
		for(y=0;y<=100;y++)
			for (z = 0; z <= 100; z++) 
			{
				if (x + y + z == 100 && 15 * x + 9 * y + z == 300)
					printf("x=%d,y=%d,z=%d\n",x, y, z);

			}

	return 0;
}


int main2()
{
	int x, y, z;
	for(x=0;x<=19;x++)
		for (y = 0; y <= 32; y++)
		{
			z = 100 - x - y;
			if (x + y + z == 100 && 15 * x + 9 * y + z == 300)
			{
				printf("x=%d,y=%d,z=%d\n", x, y, z);
			}
		}
	return 0;
}


int main3()
{
	int i = 0;
	int n = 0;
	scanf("%d", &n);
	for (i = 0; i <= n; i++)
	{
		int tam = i;
		int count = 0;
		while (tam != 0)
		{
			tam = tam / 10;
			count++;
			
		}	

		tam = i;
		int sum = 0;
		while (tam != 0)
		{
			sum = sum + pow(tam % 10, count);
			tam = tam / 10;
				
		}
		if (sum == i)
		{
			printf("%d\n", i);
		}
	}
	

	return 0;
}


int main4()
{
	int A, B, C, D, E;
	for(A=2;A<=9;A++)
		for(B=0;B<=9;B++)
			for(C=0;C<=9;C++)
				for(D=0;D<=9;D++)
					for (E = 0; E <= 9; E++)
					{
						if (A * (B * 10 + 3 + C) * A * (B * 10 + 3 + C) == 8 * 1000 + D * 100 + E * 10 + 9)
						{
							printf("A=%d B=%d C=%d D=%d E=%d", A, B, C, D, E);
						}
					}
	return 0;
}


int main5()
{
	int num = 0;
	scanf("%d", &num);
	for (int i = 100; i <= num; i++)
	{
		int j = 0;
			for(j = 2; j <= i-1; j++)
			{
				if (i % j == 0)
				{
					break;
				}
				else {
					printf("%d ", i);
					break;
				}


			}
	
		
		
	}
	return 0;
}


int main6()
{
	float sum = 0;
	for (int i = 1; i <= 100; i++)
	{
		int k = 1;
		sum = sum + 1.0 /(k*i);
		k = -k;
	}
	printf("%f ", sum);
	return 0;
}

